/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Beans;

import java.sql.Date;
import java.sql.ResultSet;
import java.sql.SQLException;


/**
 *
 * @author Alex
 */
public class Casting {
    
    private String idcasting;
    private String imagencasting;
    private Date fechacasting;
    
    public  static Casting load(ResultSet rs)throws SQLException
	{
		Casting casting = new Casting();
		casting.setIdcasting(rs.getString(1));
		casting.setImagencasting(rs.getString(2));
		casting.setFechacasting(rs.getDate(3));
                return casting;
	}

    public Date getFechacasting() {
        return fechacasting;
    }

    public void setFechacasting(Date fechacasting) {
        this.fechacasting = fechacasting;
    }

    public String getIdcasting() {
        return idcasting;
    }

    public void setIdcasting(String idcasting) {
        this.idcasting = idcasting;
    }

    public String getImagencasting() {
        return imagencasting;
    }

    public void setImagencasting(String imagencasting) {
        this.imagencasting = imagencasting;
    }
}
